<template>
	<view class="centent" v-html="centent"></view>
</template>

<script>
	export default {
		data() {
			return {
				type: '',
				centent: '',
			};
		},
		onLoad({ type, title }) {
			if (title) {
				uni.setNavigationBarTitle({ title });
			}
			this.type = type;
			this.init();
		},
		methods: {
			async init() {
				const { data } = await this.$api.policy({ type: this.type });
				this.centent = this.imgAddStyle(data.centent);
			},
		},
	};
</script>

<style lang="scss" scoped>
	.centent{
		width: 690rpx;
		margin: 0 auto;
	}
</style>
